package com.springbootxuexi.domain;

public enum ErrorCodes {

    CODE_OK(0,"ok"),
    CODE_PASSWORD_ERROR(-1111,"password or username error"),
    CODE_USER_NOT_EXIST(-1112,"user not exist"),
    CODE_PARAM_ERR(-1113,"parameters error"),
    ODE_USER_ALREADY_EXIST(-1114,"user already exist"),
    ;


    private Integer errcode;

    private String msg;

    ErrorCodes(Integer errcode, String msg) {
        this.errcode = errcode;
        this.msg = msg;
    }

    public Integer getErrcode() {
        return errcode;
    }

    public String getMsg() {
        return msg;
    }
}
